package com.app.common.core.domain.entity;

import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletResponse;

/**
 * @author 徐朴芬
 */
public class PhotoDTO {
    private MultipartFile image;
    //文件类型 png jpg
    private String type;
    // 图片base64
    private String photo;
    // 制作证件照的id
    private String spec;
    // 背景色
    private String bk;
    // 可选参数，美颜级别，浮点型，取值[1.0-5.0]，超出范围后的值无效。主要调节了脸部黑白平衡
    private String beauty_degree;
    private HttpServletResponse response;

    public MultipartFile getImage() {
        return image;
    }

    public void setImage(MultipartFile image) {
        this.image = image;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getPhoto() {
        return photo;
    }

    public void setPhoto(String photo) {
        this.photo = photo;
    }

    public String getSpec() {
        return spec;
    }

    public void setSpec(String spec) {
        this.spec = spec;
    }

    public String getBk() {
        return bk;
    }

    public void setBk(String bk) {
        this.bk = bk;
    }

    public String getBeauty_degree() {
        return beauty_degree;
    }

    public void setBeauty_degree(String beauty_degree) {
        this.beauty_degree = beauty_degree;
    }

    public HttpServletResponse getResponse() {
        return response;
    }

    public void setResponse(HttpServletResponse response) {
        this.response = response;
    }

    @Override
    public String toString() {
        return "{" +
                "image=" + image +
                ", type='" + type + '\'' +
                ", photo='" + photo + '\'' +
                ", spec='" + spec + '\'' +
                ", bk='" + bk + '\'' +
                ", beauty_degree='" + beauty_degree + '\'' +
                ", response=" + response +
                '}';
    }
}
